<template>
  <div class="barItem" @click="handerClick">
    <div>{{ label }}</div>     
    <p>{{ text }}</p>
    <img :src="url" alt="" v-if="url">
    <span class="iconfont iconjiantou1"></span>
  </div>
</template>

<script>
export default {
  props: ["label", "text", "url"],
  methods: {
    handerClick() {
      this.$emit("barClick")
    }
  }
}
</script>

<style lang="less" scoped>
.barItem {
  display: flex;
  align-items: center;
  padding: 14 / 360 * 100vw 12 / 360 * 100vw;
  border-bottom: 1px solid #e4e4e4;
  p {
    flex: 1;
    text-align: right;
    padding-right: 10 / 360 * 100vw;
    color: #888;
    font-size: 14 / 360 * 100vw;
  }
  img {
    width: 60 / 360 * 100vw;
    height: 40 / 360 * 100vw;
    margin-right: 20 / 360 * 100vw;
    border-radius: 10 / 360 * 100vw;
    object-fit: cover;
  }
  .iconjiantou1 {
    color: #888;
    margin-top: 2 / 360 * 100vw;
  }
}
</style>